<?php
/**
 * Created by PhpStorm.
 * User: zhangrongxiang
 * Date: 2017/5/20
 * Time: 下午4:25
 */


$a = 0x1;
echo $a << 2;
echo(PHP_EOL);
echo $a ^ $a;
echo PHP_EOL;
echo ~$a;
echo PHP_EOL;
echo sprintf("%u", $a);
echo PHP_EOL;
echo sprintf("%u", ~$a);
echo PHP_EOL;
echo sprintf("%u", -1);
echo PHP_EOL;
echo sprintf("%u", (2 << 63) - 1);
echo PHP_EOL;
echo sprintf("%u", ~0);
echo PHP_EOL;
echo sprintf("%b", ~0);
echo PHP_EOL;
